#include <iostream>

using namespace std;

int main(){

    double x[5] = {4, 4.5, 5, 2, 1.5};
    int a,b;
    cin >>a >> b;
    printf("Total: R$ %.2f", x[a-1] * b);
    return 0;
}